from django.db import models


# Create your models here.
class t_user(models.Model):
	user_name = models.CharField(max_length=30)
	password = models.CharField(max_length=16)
	second_name = models.CharField(max_length=30)
	email = models.CharField(max_length=100)
	phone = models.CharField(max_length=15)


class t_task(models.Model):
	issuer = models.CharField(max_length=30)
	task_user = models.CharField(max_length=30)
	bonus = models.IntegerField(default=0)
	task_time = models.TimeField()
	task_status = models.CharField(max_length=1)
	task_name = models.CharField(max_length=100)
	comment = models.CharField(max_length=100)


class t_points(models.Model):
	user_name = models.CharField(max_length=30)
	user_points = models.IntegerField(default=0)


class t_points_detail(models.Model):
	user_name = models.CharField(max_length=30)
	tx_points = models.IntegerField(default=0)
	tx_user_name = models.CharField(max_length=30)
	tx_type = models.CharField(max_length=1)
	remark = models.CharField(max_length=100)
	tx_time = models.TimeField()


class t_domain(models.Model):
	tab_name = models.CharField(max_length=40)
	col_name = models.CharField(max_length=40)
	col_val = models.CharField(max_length=40)
	remark = models.CharField(max_length=100)
	domain_time = models.TimeField()
